/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 电梯故障调查内容Entity
 * @author chenhao
 * @version 2016-09-07
 */
public class FailureSurveyContent extends DataEntity<FailureSurveyContent> {

	private static final long serialVersionUID = 1L;
	private String contentId;		// 调查内容ID
	private String deviceCode;		// 设备注册代码
	private String failureNo;		// 故障报告单编号
	private String surveyItem;		// 调查部位、调查项目
	private String surveySituation;		// 调查情况
	private String remark;		// 备注

	public FailureSurveyContent() {
		super();
	}

	public FailureSurveyContent(String id){
		super(id);
	}

	@Length(min=1, max=20, message="调查内容ID长度必须介于 1 和 20 之间")
	public String getContentId() {
		return contentId;
	}

	public void setContentId(String contentId) {
		this.contentId = contentId;
	}

	@Length(min=1, max=20, message="设备注册代码长度必须介于 1 和 20 之间")
	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	@Length(min=1, max=20, message="故障报告单编号长度必须介于 1 和 20 之间")
	public String getFailureNo() {
		return failureNo;
	}

	public void setFailureNo(String failureNo) {
		this.failureNo = failureNo;
	}

	@Length(min=0, max=200, message="调查部位、调查项目长度必须介于 0 和 200 之间")
	public String getSurveyItem() {
		return surveyItem;
	}

	public void setSurveyItem(String surveyItem) {
		this.surveyItem = surveyItem;
	}

	@Length(min=0, max=200, message="调查情况长度必须介于 0 和 200 之间")
	public String getSurveySituation() {
		return surveySituation;
	}

	public void setSurveySituation(String surveySituation) {
		this.surveySituation = surveySituation;
	}

	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}